<ul class="pager">
    #{list items:_pager, as:'page' }
        %{ curr = page.getPage() == _pager.getCurrentPage(); }%
        #{if !curr}<a href="?p=${page.getPage()}">#{/if}
            <li#{if curr} class="current"#{/if}>${page.getLabel()}</li>
        #{if !curr}</a>#{/if}
    #{/list}
</ul>